package com.dao;

import com.pojo.Dep;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;


public interface DepDao {

    @Select("select depid,depname from dep where depId=#{id}")
    public Dep findById(@Param("id") int id);

    @Select("select depid,depname from dep")
    public List<Dep> findAll();

}
//我帮你改下代码你以后按照那方式写吧